import request from '../utils/request'

export function fecthList(params){
   return request({
        url: '/roomType/queryRoomType',
        method: 'post',
        params: params
})
}
export function getById(id){
    return request({
         url: '/roomType/selectRoomTypeById',
         method: 'post',
         params: {id}
    })
 }
export function add(data){
    return request({
         url: '/roomType/addRoomType',
         method: 'post',
         data
    })
 }
 export function update(data){
    return request({
         url: '/roomType/updateRoomType',
         method: 'post',
         data
    })
 }
 export function deleteOne(id){
    return request({
         url: '/roomType/delRoomType',
         method: 'post',
         data: [id]
    })
 }
 export function deleteByIds(id){
    return request({
         url: '/roomType/delRoomType',
         method: 'post',
         data: id
    })
 }
